Exemple #1
0
 public TestP()
 {
     subscriptions = new CompositeDisposable
     {
         Integration.AddButton("кнопка созданная мною", Print)
     };
 }
Exemple #2
0
        public ButtonsTester()
        {
            subscriptions = new CompositeDisposable
            {
                Integration.AddButton(new Button("SamplePlugin: Message Button", (v, p) => MessageBox.Show("Message shown from Sample plugin."))),
                Integration.AddButton("SamplePlugin: Open iiko.ru", OpenIikoSite),
                Integration.AddButton("SamplePlugin: Print 'Test Printer'", Print),
                Integration.AddButton("SamplePlugin: Show 'Test List View'", ShowListPopup),
                Integration.AddButton("SamplePlugin: Show 'Test Keyboard View'", ShowKeyboardPopup),
                Integration.AddButton("SamplePlugin: Show input dialog", ShowInputDialog),
                Integration.AddButton("SamplePlugin: Show ok popup", ShowOkPopup),
                Integration.AddButton("SamplePlugin: Show Error popup", ShowErrorPopup),

                Integration.AddButtonOnClosedOrderView("SamplePlugin: Show ok popup", ShowOkPopupOnClosedOrderScreen),
                Integration.AddButtonOnPastOrderView("SamplePlugin: Show ok popup", ShowOkPopupOnPastOrderScreen),
            };
        }