public NewSale(Form callback, Book bk) { InitializeComponent(); this.callback = callback; remBook = (IRemBook)GetRemote.New(typeof(IRemBook)); remClient = (IRemClient)GetRemote.New(typeof(IRemClient)); this.bk = bk; }
public Main(Form callback, string name) { InitializeComponent(); this.callback = callback; this.name = name; this.label2.Text = "Welcome, " + name; this.remObject = (IRemObject)GetRemote.New(typeof(IRemObject)); }
public static void run() { remBook = (IRemBook)GetRemote.New(typeof(IRemBook)); while (true) { Thread.Sleep(5000); update(dataGrid); } }
public NewBook(Form callback) { remBook = (IRemBook)GetRemote.New(typeof(IRemBook)); InitializeComponent(); this.callback = callback; this.textBox1.KeyPress += TextBox1_KeyPress; this.textBox7.KeyPress += TextBox7_KeyPress; this.textBox8.KeyPress += TextBox8_KeyPress; this.textBox9.KeyPress += TextBox9_KeyPress; this.textBox10.KeyPress += TextBox10_KeyPress; }
public Search(Form callback) { remBook = (IRemBook)GetRemote.New(typeof(IRemBook)); InitializeComponent(); this.callback = callback; this.radioButton1.Checked = true; this.textBox1.Enabled = true; this.textBox2.Enabled = false; this.textBox1.Focus(); this.textBox1.KeyPress += TextBox1_KeyPress; }
public Main() { InitializeComponent(); List <Order> orders; remWh = (IRemWH)GetRemote.New(typeof(IRemWH)); string queueName = @".\Private$\TDIN"; orders = remWh.getOrdes(queueName); foreach (Order od in orders) { this.dataGridView1.Rows.Add(od.id, od.book.title, od.quantity, od.requestDate); } }
public Orders(Form callback) { InitializeComponent(); this.callback = callback; remBook = (IRemBook)GetRemote.New(typeof(IRemBook)); int[] keys = remBook.getOrdersId(); Order order; foreach (int id in keys) { order = remBook.getOrder(id); this.dataGridView1.Rows.Add(order.id, order.book.title, order.status, order.requestDate, order.replyDate); } }
public Sales(Form callback) { InitializeComponent(); this.callback = callback; remBook = (IRemBook)GetRemote.New(typeof(IRemBook)); int[] keys = remBook.getSalesId(); Sale sale; foreach (int id in keys) { sale = remBook.getSale(id); this.dataGridView1.Rows.Add(sale.id, sale.client.cpf, sale.client.Name, sale.book.title, sale.quantity, sale.totalPrice); } }
public BookWindow(Book book) { remBook = (IRemBook)GetRemote.New(typeof(IRemBook)); bk = book; InitializeComponent(); this.label10.Text = bk.id.ToString(); this.label11.Text = bk.title; this.label12.Text = bk.author; this.label13.Text = bk.publisher; this.label14.Text = bk.pubDate; this.label15.Text = bk.genre; this.label16.Text = bk.volume.ToString(); this.label17.Text = bk.edition.ToString(); this.label18.Text = (remBook.getBookStock(bk)).ToString(); this.label20.Text = bk.price.ToString(); }
MyForm() { Text = "NetDraw"; try { RemotingConfiguration.Configure("NetDraw.exe.config", false); inter = new Intermediate(); inter.NewSegment += OnNewSegment; inter.LastSegment += OnLastSegment; inter.ClearAll += OnClear; virtualPaper = (IPaper)GetRemote.New(typeof(IPaper)); virtualPaper.NewSegment += inter.FireNewSegment; virtualPaper.LastSegment += inter.FireLastSegment; virtualPaper.ClearAll += inter.FireClearAll; } catch (Exception ex) { MessageBox.Show(ex.Message); Close(); } strokes = virtualPaper.GetStrokes(); }
public Login() { remObject = (IRemObject)GetRemote.New(typeof(IRemObject)); InitializeComponent(); }
public PasswordRecover(Form callbackWindow) { InitializeComponent(); callback = callbackWindow; remObject = (IRemObject)GetRemote.New(typeof(IRemObject)); }
public NewClient(Form callback) { InitializeComponent(); this.callback = callback; remClient = (IRemClient)GetRemote.New(typeof(IRemClient)); }