Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        public static void run()
        {
            remBook = (IRemBook)GetRemote.New(typeof(IRemBook));

            while (true)
            {
                Thread.Sleep(5000);
                update(dataGrid);
            }
        }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
        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);
            }
        }
Esempio n. 7
0
        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);
            }
        }
Esempio n. 8
0
        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);
            }
        }
Esempio n. 9
0
        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();
        }
Esempio n. 10
0
 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();
 }
Esempio n. 11
0
 public Login()
 {
     remObject = (IRemObject)GetRemote.New(typeof(IRemObject));
     InitializeComponent();
 }
Esempio n. 12
0
 public PasswordRecover(Form callbackWindow)
 {
     InitializeComponent();
     callback  = callbackWindow;
     remObject = (IRemObject)GetRemote.New(typeof(IRemObject));
 }
Esempio n. 13
0
 public NewClient(Form callback)
 {
     InitializeComponent();
     this.callback = callback;
     remClient     = (IRemClient)GetRemote.New(typeof(IRemClient));
 }