G
Guest
Hello,
i'm having a problem with the following code:
if (m_is_it_exist==1) // if the weapon is in the mlay and can be sold
{
PrintCustShtarBuy pd=new PrintCustShtarBuy(this.mf,this);
PrintPreviewDialog dlg = new PrintPreviewDialog() ;
dlg.Document = pd;
dlg.ShowDialog();
}
the problem is that even if m_is_it_exist==0, it still trying to run the line:
dlg.ShowDialog();
i put this part in try{} catch{} and everytime it goes to the catch because
the program run only this line without running the lines before in that
specific if part.
What could be the problem?
thanks....
i'm having a problem with the following code:
if (m_is_it_exist==1) // if the weapon is in the mlay and can be sold
{
PrintCustShtarBuy pd=new PrintCustShtarBuy(this.mf,this);
PrintPreviewDialog dlg = new PrintPreviewDialog() ;
dlg.Document = pd;
dlg.ShowDialog();
}
the problem is that even if m_is_it_exist==0, it still trying to run the line:
dlg.ShowDialog();
i put this part in try{} catch{} and everytime it goes to the catch because
the program run only this line without running the lines before in that
specific if part.
What could be the problem?
thanks....