Exemplo n.º 1
0
 private void onConfirmRemove(bool messageBoxResponse)
 {
     if (messageBoxResponse)
     {
         libraryDataView.RemoveChild(this);
     }
 }
Exemplo n.º 2
0
        private void onViewLinkClick(object state)
        {
            string pathAndFile = this.printItemWrapper.FileLocation;

            Console.WriteLine(pathAndFile);
            if (File.Exists(pathAndFile))
            {
                OpenPartViewWindow();
            }
            else
            {
                string message = String.Format("Cannot find\n'{0}'.\nWould you like to remove it from the queue?", pathAndFile);
                if (StyledMessageBox.ShowMessageBox(message, "Item not found", StyledMessageBox.MessageType.YES_NO))
                {
                    libraryDataView.RemoveChild(this);
                }
            }
        }