public void sampleFunction() { myMath math = new myMath(); // <Snippet1> math.Timeout = 15000; // </Snippet1> }
public void sampleFunction() { myMath math = new myMath(); myNum Num1 = new myNum(); myNum Num2 = new myNum(); // <Snippet1> // Set the URL property to a different Web server than that described in the // service description. math.Url = "http://www.contoso.com/math.asmx"; int total = math.Add(Convert.ToInt32(Num1.Text), Convert.ToInt32(Num2.Text)); // </Snippet1> }
public MainForm() { InitializeComponent(); //cnct = new Connect(); setting = new Setting(); //окно настроек setting.SKO_visible_change += setting_SKO_visible_change; setting.Allan_visible_change += setting_Allan_visible_change; setting.SKSV_visible_change += setting_SKSV_visible_change; setting.AllanOver_visible_change += setting_AllanOver_visible_change; math_obj = new myMath(); time_list = new List <int> { 2, 4, 8, 16 }; rw = new ReadWriteFileClass(); read_from_file = false; backgroundproccess.DoWork += Backgroundproccess_DoWork; //событие запускающее фоновый процесс backgroundproccess.ProgressChanged += Backgroundproccess_ProgressChanged; //событие возвращения результата из фонового процесса setting.Time_List_Change += setting_Time_List_Change; }